<?php
	// Author: Andy Marti
	// Datum: 14.04.2014
	// ----------------------------------------------------
	// Beschreibung Klasse:
	//   Die Klasse enthält alle Eigenschaften und Methoden des Vorstandsmitglieds. 
	//   Sie wird als Propery in der Member Klasse erzeugt.
	// ----------------------------------------------------
	// Änderungen:
	//
	// ----------------------------------------------------
	
	class CommitteeTask extends Base {
		// ------------------------------------------------
		/**
		 * Die Eigenschaften der Klasse.
		 *
		 */
		// Public Variables.
		// Private Variables.
		private $MemberID = -1;
		// Public Objects
		public  $CommitteeTaskList = NIL;
		//

		// ------------------------------------------------
		// Public methodes.
		public function getCommitteeTaskData($memberid) {
			If ($this->checkInitial()) {
				if (empty($memberid)) {
					$this->Messages->throwMessage($this->Messages->NumWrongMemberId, '');
				}
				// Get association data from UserDB object.
				$this->UserDb->getCommitteeTasks($this, $memberid);
				// Fill internal fields.
				$this->MemberID = $memberid;
			}
		}
		
		/**
		 *
		 * @return string:
		 */
		public function getCommitteeTasksAsString() {
			foreach ($this->CommitteeTaskList as $committeetask) {
				$res[] = $committeetask['CommitteeTaskType'];
			}
			return implode(', ', $res);
		}
		
				// ------------------------------------------------
		// Contructor, Destructor.
		/**
		 * Construtor. 
		 * 
		 */
		public function __construct(){
			// Create class objects.
		}
		
		/**
		 * Destructor.
		 *
		 */
		public function __destruct(){
			// Destroy internal objects.
		}
	}
	
?>